package cn.demoncat.util.exception.constant;

/**
 * 异常类型枚举
 * 
 * @author 延晓磊
 *
 * @since 2018年5月4日
 */
public enum ExceptionTypeEnum {

	BIZ("BIZ","业务异常"),
	PARAM("PARAM","参数错误"),
	REQUEST("REQUEST","非法请求"),
	AUTH("AUTH","权限错误"),
	SERVER("SERVER","程序错误"),
	DB("DB","数据库异常"),
	REST("REST","服务调用失败"),
	CONNECTION("CONNECTION","连接异常"),
	IO("IO","IO异常"),
	UNAWARE("UNAWARE","未知错误");
 
	//键
	private final String key;
	//说明
	private final String msg;
	
	ExceptionTypeEnum(String key, String msg){
		this.key = key;
		this.msg = msg;
	}

	public String getKey() {
		return key;
	}

	public String getMsg() {
		return msg;
	}

}
